<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ajax</title>
</head>
<body>
<div>
<script type="text/javascript">
var XMLHttpRequestObject = null;

if (window.XMLHttpRequest){
  XMLHttpRequestObject = new XMLHttpRequest();
}
else if (window.ActiveXObject){
  XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
}

if(XMLHttpRequestObject){
  document.write("Obiekt XMLHttpRequest został utworzony.");
}
else{
  document.write("Obiekt XMLHttpRequest nie został utworzony.");
}
</script>
</div>
</body>
</html>
